package com.mipo;

import java.util.List;

import redis.clients.jedis.Jedis;

public class Test {
	public static void main(String[] args) {
		Jedis edis = new Jedis("120.55.57.60", 46379);
		System.out.println(edis.ping());
		
		edis.set("kkk", "redis");
		System.out.println("value="+edis.get("kkk"));
		edis.lpush("testList", "redis");
		edis.lpush("testList", "ycy");
		List<String> list = edis.lrange("testList", 0, 500);
		for (int i = 0; i < list.size(); i++) {
			System.out.println(list.get(i));
		}
	}
}
